﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ProgNetComponentsDx.Forms;

namespace ProgNetComponentsDx.Forms
{
    public sealed partial class FormBackgroundWorkMultiThread : FormBackgroundWorkBase
    {

        public FormBackgroundWorkMultiThread()
        {
            InitializeComponent();
        }

        public FormBackgroundWorkMultiThread(string text)
            : this()
        {
            this.Text = text;
        }
        
        public void AddAction(Delegate Delegate, params object[] parameters)
        {
            if (!_Loaded)
            {
                backgroundControlMultiThread.AddAction(Delegate, parameters);
            }
        }
        
        public override Controls.BackgroundControlBase BackgroundControl
        {
            get
            {
                return backgroundControlMultiThread;
            }
        }
    }
}
